//脱下召唤兽装备 {"道具":1,"编号":1,"类型":"道具","角色":"bb"} 
// @ts-ignore
export async function execute(client_id,message_json) {
    let login_characters = G.Characters.get_current_login_characters(client_id);
    let type_key = message_json["类型"];
    let index = message_json["道具"];
    let pet_index = message_json["编号"];
    let pet_data = login_characters["召唤兽"][pet_index - 1];
    if (pet_data === undefined) {
        ClientUtils.send_basic_prompt(client_id, "召唤兽不存在");
        return;
    }
    if (pet_data["装备"][index - 1] === undefined) {
        ClientUtils.send_basic_prompt(client_id, "该位置不存在装备");
        return;
    }
    index = index - 1;
    G.Pet.take_off_equipment(login_characters["id"], pet_data, type_key, index);

}